From 03454aa712ff144d81c6a8614df76fdf11fc7955 Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Sun, 18 Sep 2005 22:42:02 +0100 Subject: [PATCH] Add and use XendDomainInfo.getBackendFlags to decouple image.py from the internals of XendDomainInfo, in preparation for changing the latter. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 4 ++++ tools/python/xen/xend/image.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index d6b6637b06..f26323cb94 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -354,6 +354,10 @@ class XendDomainInfo: self.storeDom("store/ring-ref", ref) + def getBackendFlags(self): + return self.backend_flags + + def closeStoreChannel(self): """Close the store channel, if any. Nothrow guarantee.""" diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 4fe222bf88..6d7f363ffd 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -188,7 +188,7 @@ class ImageHandler: return # Set params and call buildDomain(). - self.flags = self.vm.backend_flags + self.flags = self.vm.getBackendFlags() if not os.path.isfile(self.kernel): raise VmError('Kernel image does not exist: %s' % self.kernel) -- 2.30.2